all:
	$(shell ./apply_patch.sh > /dev/null 2>&1)
	stat dpdk_src/build > /dev/null 2>&1 || \
	(cd dpdk_src && meson -Dprefix=$(prefix) build && \
	cd build && ninja -j48 && ninja install)
	$(MAKE) -C infra install_dir=$(prefix)
	cp infra/build/dpdk_infra.so $(libdir)/libdpdk_infra.so
install:
	echo "Nothing to be done in install"
clean:
	cd dpdk_src && rm -rf build $(libdir)/librte*
	$(MAKE) -C infra clean
	rm -rf $(libdir)/libdpdk_infra.so
